/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bsd5ex.group1.kaokang.dao;

import com.bsd5ex.group1.kaokang.config.TableNameConstants;
import com.bsd5ex.group1.kaokang.model.Food;

/**
 *
 * @author VAIO
 */
public class FoodDAO extends AbstractDAO<Food> {
    
    public Food getFoodByID(int foodID) {
        return (Food) queryOneResult("from " + getEntityName() + " as a where a.id_food=" + foodID);
    }
}
